/*
 * @Author: xiawei 1243162387@qq.com
 * @Date: 2024-04-15 09:20:19
 * @LastEditors: xiawei 1243162387@qq.com
 * @LastEditTime: 2024-04-15 09:27:05
 */

import { request } from '@package/shared/utils'
import  { ResponseType } from '@package/shared/types'

// app统计参数类型
export type AppStatistics = {
    type?: string
}
// 告警统计参数类型
export type AlarmStatistics = {
    type?: string
}
// app日活量统计
export const appStatistics = (data: AppStatistics):Promise<ResponseType> => {
    return request.post('/dashboard/statistics/app', data)
}
// app告警统计
export const alarmStatistics = (data: AlarmStatistics):Promise<ResponseType> => {
    return request.post('/dashboard/statistics/alarm', data)
}